<include file="__THEME__/header" />
<script type="text/javascript" src="../Public/Js/ask.js"></script>
<link rel="stylesheet" href="../Public/Style/ask.css" type="text/css" media="screen" charset="utf-8" />
<div class="askMain">
	<include file="Public:header" />
	<div class="index">
		<include file="Public:menu" />
		

				<div class="c666">
					<a href="{:U('ask/Index/myask',array('flag'=>'1','flag'=>1))}" <if condition="$_GET['flag'] eq 1"> style="color:red;" </if>>最新提问</a> &nbsp;
					<a href="{:U('ask/Index/myask',array('flag'=>'0'))}" <if condition="$_GET['flag'] eq 0"> style="color:red;" </if>>已关闭</a>
				</div>
				<div class="list">
					<volist name="data['list']['item']" id="val" empty="暂无提问">
					<li><h2>
							<a href="{:U('ask/Index/show',array('id'=>$val['ask_id']))}"
								target="_blank">{$val['ask_title']}</a>
						</h2>
						<p>
							<if condition="$val['thumbName']">
							<a href="{:U('ask/Index/show',array('id'=>$val['ask_id']))}"
								target="_blank">{$val['thumb']}</if>
							{$val['ask_context']|text|msubstr=0,110}
						</p>
						<p class="c666 clear">
							<a href="{:U('home/Space/index',array(uid=>$val['user_id']))}">{$val['user_name']}</a>
							- {:date('Y-m-d H:i:s',$val['ask_addtime'])} -
							回答:{$val['ask_num']} - 浏览:{$val['view_num']}
						</p></li>
					</volist>
					<div class="page">{$data['list']['pageShow']}</div>

					</div>
					<!-- end list -->
				</div>
				<!-- end mainM -->
				<div class="indexR">
					<p><strong>推荐问题</strong></p>
					<volist name="data['hotAsk']['item']" id="val" empty="暂无推荐">
					      <li><a href="{:U('ask/Index/show',array('id'=>$val['ask_id']))}" target="_blank" title="{$val.ask_title}">{$val.ask_title|msubstr=0,15}</a><p class="ccc">{$val.user_name} - {:date('Y-m-d',$val['ask_addtime'])}</p></li>

					</volist>
				</div>
				<!--end mainR -->
			</div>
			<!-- end main -->
		</div>
		<!-- end askMain -->
		<include file="Public:footer" />
		<include file="__THEME__/footer" />